package com.ita.os.client.service.impl;

import java.util.List;

import com.ita.os.client.dao.MerchantDao;
import com.ita.os.client.dao.impl.MerchantDaoImpl;
import com.ita.os.client.po.Merchant;
import com.ita.os.client.po.Page;
import com.ita.os.client.service.MerchantService;

public class MerchantServiceImpl implements MerchantService {

	private MerchantDao merchantDao = new MerchantDaoImpl();
	
	@Override
	public List<Merchant> listMerchants(Page p,String type) {
		// TODO Auto-generated method stub
		return merchantDao.listMerchants(p,type);
	}
	
	@Override
	public Merchant merchantInfo(int mid) {
		// TODO Auto-generated method stub
		return merchantDao.merchantInfo(mid);
	}

	@Override
	public int countMerchant(String type) {
		// TODO Auto-generated method stub
		return merchantDao.countMerchant(type);
	}

}
